package org.shilong.ViewUtility;

import org.shilong.UI.R;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.LinearLayout;
import android.widget.TextView;

public class MainLayoutBaseAdapter extends BaseAdapter {

	private Context mContext;

	private String[] arr;

	public MainLayoutBaseAdapter( Context con ){

		this.mContext = con;

		arr = new String[]{"广场","朋友","聚会","名片"};
	}

	@Override
	public int getCount() {
		// TODO Auto-generated method stub
		return arr.length;
	}

	@Override
	public Object getItem(int p) {
		// TODO Auto-generated method stub
		return arr[p];
	}

	@Override
	public long getItemId(int arg0) {
		// TODO Auto-generated method stub
		return arg0;
	}

	@Override
	public View getView(int position, View arg1, ViewGroup arg2) {
		// TODO Auto-generated method stub
		/*
		LayoutInflater inflater = (LayoutInflater) mContext.getSystemService( Context.LAYOUT_INFLATER_SERVICE );
		
		View root = inflater.inflate( R.layout.inflater_layout_for_main_content, null );
		
		LinearLayout layout = (LinearLayout) root.findViewById( R.id.inflater_for_main_layout );*/
		
		return null;
	}

}
